package com.csvc.business.cmdb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csvc.repository.cmdb.domain.OraSegment;

/**
* <p>
    *  服务类
    * </p>
*
* @author vincent zou
* @since 2020-12-29
*/
    public interface IOraSegmentService extends IService<OraSegment> {
    /**
    * 新增
    * @param oraSegment {@link OraSegment}
    * @return {@code boolean}
    */
    boolean create(OraSegment oraSegment);

    /**
    * 删除
    * @param id {@code Long}
    * @return {@code boolean}
    */
    boolean remove(Long id);

    /**
    * 编辑
    * @param oraSegment {@link OraSegment}
    * @return {@code boolean}
    */
    boolean update(OraSegment oraSegment);

    /**
    * 获取
    * @param id {@code Long}
    * @return {@link OraSegment}
    */
    OraSegment get(Long id);

    /**
    * 分页
    * @param current {@code int} 页码
    * @param size {@code int} 笔数
    * @param oraSegment {@link OraSegment}
    * @return {@code IPage<OraSegment>}
    */
    IPage<OraSegment> page(int current, int size, OraSegment oraSegment);
    }
